package com.hatchsolution.ftp.pool;



import org.apache.commons.net.ftp.FTPClient;
/**
 * Ftp service
 * @author gary-pc
 *
 */
public interface FTPPoolService {
	/**
	 * get a ftp client from pool
	 * @return
	 */
	public abstract FTPClient borrowObject() throws Exception  ;
	
	/**
	 * return ftp client to pool
	 * @param ftpClient
	 */
	public abstract void returnObject(FTPClient ftpClient) throws Exception ;

}
